<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function showArr () {
            return ['唱','跳','rap','打篮球']
        }
        // es5的写法： let res = showArr()
        let [h1, h2,h3, h4] = showArr();
        console.log(h1);
        console.log(h2);
        console.log(h3);
    </script>
</body>
</html>